/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing;
//Let's import Mockito statically so that the code looks clearer
import java.util.Iterator;
import java.util.TreeMap;

/**
 *
 * @author Yana
 */
public class Tessst {

    public static void main(String[] args) {
        MapList<String> ml = new MapList(new TreeMap());
        ml.add(1, "10");
        ml.add(3, "30");
        ml.add(5, "50");
        ml.add(-2, "-20");
        ml.add(-4, "-40");
        
        System.out.println(ml);
        Iterator iterator = ml.iterator();
        
//       System.out.println(iterator.next());
        System.out.println(iterator.next());
      iterator.remove();
       // System.out.println(iterator.next());
        System.out.println(ml);
        
         iterator.remove();
         System.out.println(ml);
        iterator.remove();
        System.out.println(ml);
        iterator.remove();
        System.out.println(ml);
//        iterator.remove();
        System.out.println(ml);
    }
}